# BAD
def greeting(name):
    return 'Hello ' + name


# GOOD
def greeting2(name: str) -> str:
    return 'Hello ' + name


a = greeting(111)  # 没有提示
b = greeting2(111)  # 会检测 参数类型 是否符合：Expected type 'str', got 'int' instead
# print(a)
print(b)